package com.cc.dao;

import com.cc.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {

        int addBook(Book book);

        List<Book> findBookByNameAndAuthor(@Param("bookName") String bookName, @Param("author") String author);

        int updateBook(Book book);

        List<Book> findBookByCategoryId(@Param("categoryId") int categoryId);
    }
